package com.rgst.validator.em;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

import com.rgst.validator.IsIdNoValidator;

/**
 * Created by tancw on 2019/12/1.
 */
@Target({ElementType.METHOD,ElementType.FIELD,ElementType.ANNOTATION_TYPE,ElementType.CONSTRUCTOR,ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = {IsIdNoValidator.class})
public @interface IsIdNo {
    String message() default "证件号码错误";

    boolean notEmpty() default true;

    Class<?>[] groups() default{};

    Class<? extends Payload>[] payload() default {};

}
